package net.pulseproject.router.modules.logic;

import java.util.Collection;

public class ValueAdderImpl<T> extends AbstractValueModifier<T> {
	
	public ValueAdderImpl(final int valueSourcesCount) {
		super(valueSourcesCount);
	}

	@Override
	final int calculateConcreteValue(final Collection<Integer> values) {
		int sum = 0;
		for(final Integer lastValue : values) {
			sum += lastValue.intValue();
		}
		return sum;
	}
	
}
